package com.wocao.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wocao.entity.ZyBuilding;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wocao.entity.ZyRoom;

import java.io.Serializable;

/**
 * 楼栋  Mapper 接口
 *
 * @since 2023-11-29
 */
public interface ZyBuildingMapper extends BaseMapper<ZyBuilding> {

    /**
     * 根据id查询楼栋名称
     *
     * @param buildingId
     */
    void selectNameById(String buildingId);


    @Override
    ZyBuilding selectById(Serializable id);

    /**
     * 根据楼栋名称和楼栋编码模糊查询所有楼栋信息
     *
     * @return
     */
    Page<ZyBuilding> selectBuildingsByLike(Page<ZyBuilding> zyBuildingPage, String buildingName, String buildingCode, String communityId);
}
